home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{7115A980-41DC-11D0-B2C5-444553540000}#1.1#0"; "GLTEXT.OCX"
- Begin VB.Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = "OpenGL Text ActiveX Demo"
- ClientHeight = 4875
- ClientLeft = 1050
- ClientTop = 1470
- ClientWidth = 4905
- Icon = "GLText.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- Picture = "GLText.frx":000C
- ScaleHeight = 325
- ScaleMode = 3 'Pixel
- ScaleWidth = 327
- Begin VB.CheckBox T
- Caption = "Transparent"
- Height = 195
- Left = 120
- TabIndex = 7
- Top = 4200
- Width = 2055
- End
- Begin VB.CheckBox PosZ
- Caption = "Position Z"
- Height = 195
- Left = 3360
- TabIndex = 5
- Top = 4560
- Width = 1050
- End
- Begin VB.CheckBox Y
- Caption = "Rotate Y"
- Height = 195
- Left = 1200
- TabIndex = 4
- Top = 4560
- Width = 975
- End
- Begin VB.CheckBox X
- Caption = "Rotate X"
- Height = 195
- Left = 120
- TabIndex = 3
- Top = 4560
- Width = 975
- End
- Begin VB.CommandButton Command2
- Caption = "Rest"
- Height = 315
- Left = 2280
- TabIndex = 2
- Top = 4200
- Width = 1095
- End
- Begin VB.CheckBox Z
- Caption = "Rotate Z"
- Height = 195
- Left = 2280
- TabIndex = 1
- Top = 4560
- Width = 975
- End
- Begin VB.Timer Timer
- Interval = 100
- Left = 6240
- Top = 120
- End
- Begin VB.CommandButton Command1
- Caption = "Exit"
- Height = 315
- Left = 3480
- TabIndex = 0
- Top = 4200
- Width = 1215
- End
- Begin GLText.GLText GLText
- Height = 3975
- Left = 120
- TabIndex = 6
- Top = 120
- Width = 4695
- Extrusion = 0.3
- LightX = 0
- LightY = 15
- LightZ = 25
- PositionX = 0
- PositionY = 0
- PositionZ = -5
- ScaleX = 1
- ScaleY = 1
- ScaleZ = 1
- DegreeX = 0
- DegreeY = 0
- DegreeZ = 0
- BackColor = 12632256
- ForeColor = 16711680
- Enabled = -1 'True
- Text = "GLText"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Arial Black"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Alignment = 1
- LineSpace = 0.5
- Transparent = 0 'False
- MousePointer = 5
- ExtendWidth = 8281
- ExtendHeight = 7011
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim Ins As Double
- Private Sub Command1_Click()
- End
- End Sub
- Private Sub Command2_Click()
- GLText.DegreeX = 0
- GLText.DegreeY = 0
- GLText.DegreeZ = 0
- GLText.PositionZ = -4
- End Sub
- Private Sub Form_Load()
- GLText.Text = "GLText" & Chr$(13) & "ActiveX"
- Ins = -0.3
- GLText.ZOrder 1
- End Sub
- Private Sub T_Click()
- GLText.Transparent = T
- End Sub
- Private Sub Timer_Timer()
- On Error Resume Next
- If X Then GLText.DegreeX = GLText.DegreeX + 5.1
- If Y Then GLText.DegreeY = GLText.DegreeY + 5.1
- If Z Then GLText.DegreeZ = GLText.DegreeZ + 5.1
- If PosZ Then
- If GLText.PositionZ < -10 Then
- Ins = 0.3
- End If
- If GLText.PositionZ > -1 Then
- Ins = -0.3
- End If
- GLText.PositionZ = GLText.PositionZ + Ins
- End If
- End Sub
-